package com.cskaoyan.service.impl;

import com.cskaoyan.mapper.CskaoyanmallUserMapper;
import com.cskaoyan.service.ZbUserService;
import com.cskaoyan.utils.QueryUserIdByUserNameUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ZbUserServiceImpl implements ZbUserService {
    @Autowired
    CskaoyanmallUserMapper cskaoyanmallUserMapper;


    @Override
    public Integer query101Count(Integer userId) {

        Integer count101 = cskaoyanmallUserMapper.selectCount101(userId);
        return count101;
    }

    @Override
    public Integer query201Count(Integer userId) {
        Integer count201 = cskaoyanmallUserMapper.selectCount201(userId);
        return count201;
    }

    @Override
    public Integer query301Count(Integer userId) {
        Integer count301 = cskaoyanmallUserMapper.selectCount301(userId);
        return count301;
    }

    @Override
    public Integer query401Count(Integer userId) {
        Integer count401 = cskaoyanmallUserMapper.selectCount401(userId);
        return count401;
    }

    @Override
    public Integer query101Countid() {
        Integer count101 = cskaoyanmallUserMapper.selectCount101id(QueryUserIdByUserNameUtils.queryName(cskaoyanmallUserMapper));
        return count101;
    }

    @Override
    public Integer query201Countid() {
        Integer count201 = cskaoyanmallUserMapper.selectCount201id(QueryUserIdByUserNameUtils.queryName(cskaoyanmallUserMapper));
        return count201;
    }

    @Override
    public Integer query301Countid() {
        Integer count301 = cskaoyanmallUserMapper.selectCount301id(QueryUserIdByUserNameUtils.queryName(cskaoyanmallUserMapper));
        return count301;
    }

    @Override
    public Integer query401Countid() {
        Integer count401 = cskaoyanmallUserMapper.selectCount401id(QueryUserIdByUserNameUtils.queryName(cskaoyanmallUserMapper));
        return count401;
    }


}
